package com.ggqq.service;


import com.ggqq.entity.Blog;
import com.ggqq.queryEntity.*;

import java.util.List;

/**
 * 博客service业务层接口
 * */
public interface BlogService {

    List<BlogQuery> getAllBlogQuery();

    ShowBlog getBlogById(Long id);

    int saveBlog(Blog blog);

    int updateBlog(ShowBlog showBlog);

    void deleteBlog(Long id);

    List<BlogQuery> getBlogBySearch(SearchBlog searchBlog);//根据标题、类型来查询博客

    List<FirstPageBlog> getAllFirstPageBlog();

    List<RecommendBlog> getAllRecommendBlog();

    List<FirstPageBlog> getSearchBlog(String query);

    DetailedBlog getDetailedBlog(Long id);//获取博客详情

    List<FirstPageBlog> getByTypeId(Long typeId);//根据TypeId获取博客列表，在分类页进行的操作

    Integer getBlogTotal();

    Integer getBlogViewTotal();

    Integer getBlogCommentTotal();

    Integer getBlogMessageTotal();


}
